//
// Created by ziya on 2025/5/20.
//
#include <stdio.h>

#include "token.h"

extern token_type get_next_token(const char **content);

int main(int argc, char *argv[]) {
    char line[1024];

    while (1) {
        printf(">>> ");

        fgets(line, sizeof(line), stdin);

        char *tmp = line;
        while (1) {
            token_type type = get_next_token(&tmp);

            if (TOKEN_EOF == type) break;
        }
    }

    return 0;
}